﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.Admin.Web.ApplicationCore.Dtos.Role
{
    public class SaveRoleInput
    {
        public int Id { get; set; }

        [StringLength(50, ErrorMessage = "角色名称长度至少1位，最大长度50位", MinimumLength = 1)]
        [Required(ErrorMessage = "角色名称不能为空!")]
        public string RoleName { get; set; }

        public string RoleCode { get; set; }

        public bool Enabled { get; set; }

        public string Remark { get; set; }

        public int OrderIndex { get; set; }
         
    }
}
